<template>
  <div class="video-container">
    <div class="close"  @click="closeVideo = $emit('close',false)"><i class="el-icon-close"></i></div>
    <div class="video"><video autoplay :src="url"></video></div>
  </div>
</template>

<script>
export default {
  props: {
    url: {
      required: true
    }
  }
}
</script>
<style lang="scss" scoped>
.video-container {
  position: fixed;
  left: 0;
  top: 0;
  background: rgba(0, 0, 0, 0.3);
  width: 100%;
  height: 100%;
  z-index: 9999 !important;
  .video {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    video {
      width: 100%;
      height: 100%;
    }
  }
  .close {
    position: fixed;
    font-size: 20px;
    font-weight: 400;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    color: #fff;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 50px;
    box-shadow: 51px 1px 1px rgba(107, 107, 107, 0.5) inset;
  }
}
</style>
